﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.IO;

namespace jacService
{
    // 注意: 如果更改此处的接口名称 "IService1"，也必须更新 Web.config 中对 "IService1" 的引用。
    [ServiceContract]
    public interface IService1
    {
        #region 浏览端

        [OperationContract]
        byte[] getByte(string fileName);

        #endregion

        #region 返回所有AD

        [OperationContract]
        List<ad> getAD();

        #endregion

        #region 管理端

        #region 增,删,改,查

        [OperationContract]
        bool addAD(ad data, bytedata ms);

        [OperationContract]
        ad selectAD(int id);

        [OperationContract]
        bool delete(int id);

        [OperationContract]
        bool insdata();

        #endregion

        #region　设置

        [OperationContract]
        List<setting> getsetting();

        [OperationContract]
        bool setdata(string key, string data);

        #endregion

        #region 密码修改

        [OperationContract]
        bool login(string userid, string pwd);

        [OperationContract]
        bool updatepwd(string oldpwd, string pwd);

        #endregion

        #endregion
    }
}
